
<form action="acao/convenios.php?acao=cadastrar" method="post" enctype="multipart/form-data">
  <p>Titulo
    <br />
    <input name="titulo" type="text" class="text-input medium-input datepicker" id="titulo" value="<?=$_GET['titulo']?>" />
    <br />
  </p>
  <p>Endere&ccedil;o <br />
    <input name="endereco" type="text" class="text-input medium-input datepicker" id="endereco" value="<?=$dados['endereco']?>" />
    <br>
    <br />
    Categoria do conv&ecirc;nio:<br />
    
    <select name="categoria">
      <option value="0">Selecione a categoria</option>
      <?php
$sql	= mysql_query("SELECT * FROM convenios_categoria");
while($row = mysql_fetch_array($sql)){
?>
      <option value="<?=$row['id']?>">
      <?=$row['titulo']?>
      </option>
      <? } ?>
          </select>

  <a href="#cat" rel="lyteframe" rev="width:450; height:500px" class="default-tab" onmouseover="this.href='modulos/convenios/lista-categoria.php?titulo='+document.getElementById('titulo').value">
  <button class="button" style="margin-right:10px;" type="button">Adicionar</button>
  </a>
<button class="button" style="margin-right:10px;" type="button" onclick="javascript:location.href='?modulo=convenios&acao=insere';">Atualizar</button>


<br /> 
<br /> 
Url de Apresenta&ccedil;&atilde;o
<br />
<input name="urlapres" type="text" class="text-input medium-input datepicker" id="urlapres" />
<br />

<br /> 
Url Real
<br />
<input name="urlreal" type="text" class="text-input medium-input datepicker" id="urlreal" />
<br />

<br /> 
Telefone
<br />
<input name="url" type="text" class="text-input medium-input datepicker" id="url" />
<br />

<br />
Imagem:<br />
<input type="file" name="imagem" id="image" />
<br />
<br /> 

Detalhes
<br />
<textarea name="detalhes" id="detalhes"></textarea>
	<script type="text/javascript">
    var oFCKeditor = new FCKeditor( 'detalhes' ) ;
    oFCKeditor.BasePath = "../lib/fckeditor/" ;
    oFCKeditor.Width = "100%";
    //oFCKeditor.Height = "300";
    oFCKeditor.Height = "600";
    oFCKeditor.ReplaceTextarea() ;
    </script>
<br />
<br />
Ativo:
<input name="ativo" type="checkbox" id="ativo" value="1" />
<br />
<br>
<input type="submit" class="button" value="Cadastrar">
</form>
